// redirect.js navigator.js
var app = getApp()
Page({
  data: {
    title: '',
    url: ''
  },

  play(e){
     //执行全屏方法
     var videoContext=wx.createVideoContext("myvideo", this);
     videoContext.requestFullScreen();

  },
  
   //关闭视屏
   CloseVideo(){
     //执行退出全屏方法
     var videoContext=wx.createVideoContext("myvideo", this);
     videoContext.exitFullScreen();

   },
   /**视屏进入、退出全屏 */
   fullScreen(e){
      var isFull=e.detail.fullScreen;
      //视屏全屏时显示加载viedo,非全屏时，不显示加载video
      this.setData({
          fullScreen:isFull
      })

   },

  onLoad: function (options) {
     // console.log(options.url)
     // console.log(options.title)
      this.setData({
          title:options.title,
          url:options.url
      })
 },

  
})